import request from "@/request/";

export const getMenuInCollectList = () =>
  request({
    url: "/api/trio-system/menuInCollect/menuInCollectList",
    method: "post",
  });

export const saveMenuInCollect = (menuId) => {
  return request({
    url: "/api/trio-system/menuInCollect/saveMenuInCollect",
    method: "post",
    data: {
      menuId,
    },
  });
};

export const saveMenuInClick = (menuId) => {
  return request({
    url: "/api/trio-system/menuInCollect/saveMenuInClick",
    method: "post",
    isShowLoading: false,
    data: {
      menuId,
    },
  });
};

export const removeMenuInCollect = (menuId) => {
  return request({
    url: "/api/trio-system/menuInCollect/removeMenuInCollect",
    method: "post",
    data: {
      menuId,
    },
  });
};

export const getMenuInClickList = () => {
  return request({
    url: "/api/trio-system/menuInCollect/menuInClickList",
    method: "post",
  });
};
